package org.jeecg.common.system.vo;

import java.util.Date;
import java.util.List;

import org.jeecg.common.util.DateUtils;

import lombok.Data;

/**
 * @Description: 用户缓存信息
 */
@Data
public class SysUserCacheInfo {

	private String sysUserId;

	private String sysUserCode;
	
	private String sysUserName;
	
	private String sysOrgCode;

	/**
	 * 当前用户部门ID
	 */
	private String sysOrgId;

	private List<String> sysMultiOrgCode;
	
	private boolean oneDepart;

	/**
	 * 当前用户角色code（多个逗号分割）
	 */
	private String sysRoleCode;

	public boolean isOneDepart() {
		return oneDepart;
	}

	public String getSysDate() {
		return DateUtils.formatDate();
	}

	public String getSysTime() {
		return DateUtils.now();
	}

}
